﻿<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!doctype html> 
<html> 
    <head>
        <meta charset="utf-8" />
        <title></title>
        <link rel="stylesheet" href="css/reset.css" />
        <link rel="stylesheet" href="css/layout.css" />
        <link rel="stylesheet" href="css/box.css" />
        <link rel="stylesheet" href="css/pagination.css" />
        <link rel="stylesheet" href="css/style.css" />
        <script type="text/javascript" src="http://cb.alimama.cn/kissy/1.2/kissy-min.js"></script>
        <script type="text/javascript" src="js/choose.js"></script>




    </head>
    <body>

        <div id="content" class="choose">
            <div class="layout grid-s4m0">
                <div class="col-main">
                    <div class="main-wrap">
                        设置您单次获取一组生词的个数：
                        <form name="settingform" id="settingform" action="user">

  


                            <script>
    
                                function doSubmit(){
                                    var s=document.getElementById("userWordNumber").value;   
                                    if(s!=null){
                                        
                                        s=s.replace(/(^\s*)|(\s*$)/g, "");
                                        
                                    }
                                    if(s==""){
                                 alert('您输入的不是数字');
                                    }else if(!isNaN(s)){
          
                                        document.forms[0].submit();
                                    }else{
                                        alert('您输入的不是数字');
                                    }
        
                                }
 
 
    
    
                            </script>

                            <input type="text" name="userWordNumber" id="userWordNumber" value=${userNumberConfig} >
                            <input type="hidden" name="action" id="action" value=saveconfig>
                            <input type="button" value="确定" onclick="doSubmit()">
                        </form>
                    </div>
                </div>

                <div class="col-sub">
                    <div class="s-box s-box-weak groupbox">

                        <div class="s-box-hd">
                            <h3 class="s-box-title">我要背单词</h3>
                        </div>
                        <div class="s-box-bd">
                            <div class="bd">
                                <ul>
                                    <li><i class="icon mylesson"></i><a href="sysLib?action=list">我的教材</a></li>
                                    <li><i class="icon review"></i><a href="learningStatus?action=study">单词复习</a></li>
                                    <li><i class="icon setting"></i><a href="#">功能设置</a></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div id="footer">
            <div class="layout grid-m">
                <div class="col-main">
                    <div class="rights">© Copyright 2010~2011, All Rights Reverved.Supported By BanRuoLang.</div>
                </div>
            </div>
        </div>
        <script src="js/common.js" type="text/javascript" />



    </body>
</html>